package com.wjk.kylin.modules.system.role.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wjk.kylin.modules.system.role.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  角色表 Mapper 接口
 * </p>
 *
 * @author wangjkui
 * @since 2020-06-01
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {


    IPage<Role> findPage(Page<Role> page, @Param("role") Role role);

    List<Role> findRolePermissionByUserId(String userId);
}
